package com.vpclub.service;

import com.vpclub.dao.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author : leimingchao
 * @version V1.0
 * @Project: springdemo
 * @Package com.vpclub.service
 * @Description: TODO
 * @date Date : 2021年06月01日 22:09
 */
public class BaseService<T> {

    @Autowired
    BaseDao<T> baseDao;

    public void save() {
        System.out.println("自动注入的dao："+baseDao);
        baseDao.save();
    }
}
